package task

import (
	"wechat_pusher/enum"
	"wechat_pusher/models"
)

type TextCustomTask struct {
	taskValue models.TextCustom
}

func (h *TextCustomTask) GetTaskType() string {
	return enum.TASK_TYPE_TEXT_CUSTOM
}

func (h *TextCustomTask) SetTask(taskValue interface{}) {

	v, ok := taskValue.(models.TextCustom)
	if ok {
		h.taskValue = v
	}
}

func (h *TextCustomTask) GetTask() interface{} {
	return h.taskValue
}
